module.exports.list   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 15
c 2
b 0
f 0
nc 1
dl 0
loc 22
rs 9.65
nop 1
1
const Response = require('../util/response')
2
const Validate = require('../util/validate')
0 ignored issues
show
Unused Code introduced by
The constant Validate seems to be never used. Consider removing it.
Loading history...
3
const General = require('../helpers/general')
0 ignored issues
show
Unused Code introduced by
The constant General seems to be never used. Consider removing it.
Loading history...
4
5
module.exports = {
6
7
	list: async function (ctx) {
8
9
		let images = [
10
			{
11
				'name': 'name',
12
				'image': 'http://tools.miaoke.tech/images/card/bg1.png',
13
				'template_id': 1,
14
			},
15
			{
16
				'name': 'name',
17
				'image': 'http://tools.miaoke.tech/images/card/bg2.png',
18
				'template_id': 2,
19
			},
20
			{
21
				'name': 'name',
22
				'image': 'http://tools.miaoke.tech/images/card/bg3.png',
23
				'template_id': 3,
24
			},
25
		]
26
27
		return Response.output(ctx, images)
28
	},
29
30
31
}